/******************** 变量 ********************/
$radio-group-checked-border-color: transparent;

/******************** mixin ********************/

/******************** 组件 ********************/
.lv-radio-group {
  display: inline-block;
  color: $text-color;
  font-size: $font-size-base;
  line-height: $line-height-base;
  vertical-align: middle;

  // 图标组合单选的demo适配
  &.lv-icon-only-radio-btn-group .lv-checkbase .lv-button.lv-button-type-default:not(.lv-button-loading){
    width: 0.32rem;
    min-width: 0.32rem;
    padding: 0;

    .lv-icon-host {
      @include icon-size-md;
    }
  }

  &.lv-radio-group-disabled {
    .lv-checkbase {
      &:not(.lv-checkbase-checked) .lv-button.lv-button-type-default:not(.lv-button-loading) {
        border-color: $border-color-disabled;

        &::before {
          border-color: $border-color-disabled;
        }
      }

      &:first-child {
        &:not(.lv-checkbase-checked) .lv-button.lv-button-type-default:not(.lv-button-loading) {
          &::before {
            border-color: $radio-group-checked-border-color;
          }
        }
      }

      &.lv-checkbase-checked {
        z-index: 1;

        &+.lv-checkbase-button .lv-button.lv-button-type-default:not(.lv-button-loading)::before,&+lv-tooltip+.lv-checkbase-button .lv-button.lv-button-type-default:not(.lv-button-loading)::before  {
          border-color: $radio-button-disabled-border-color;
        }
        .lv-button:not(.lv-button-loading) {
          &:disabled,
          &[disabled] {
            background-color: $radio-group-checked-background-disabled;
            border-color: $radio-button-disabled-border-color;
          }
        }
        &:not(:first-child)  .lv-button:not(.lv-button-loading){
          &:disabled,
          &[disabled]{
            &::before {
              border-color: $border-color-secondary;
            }
          }
        }
      }
    }
  }
}
